﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using System.Drawing; 


namespace WcfTest
{
    [ServiceContract]
    public interface ITransportPictureWS
    {

        [OperationContract]
        PictureWrapper getPictureWrapper(); 
    }

    [DataContract]
    public class PictureWrapper
    {
        public string path;
        public Image myImage = Image.FromFile("c:/100_2973.jpg");

        public PictureWrapper()
        {
            this.path = "c:/100_2973.jpg";
            this.myImage = Image.FromFile(this.path); 
    
        }

        [DataMember]
        public string Path
        { 
            get { return this.path; }
            set { this.path = value; } 
        }

        [DataMember]
        public Image MyImage
        {
            get { return this.myImage; }
            set { ; }
        }
    }
}
